import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { ProductAttributeCategory, ProductAttribute } from '../model/productAttr';
import { CommonApi } from './commonApi';
import { RequestService } from './request.service';


@Injectable({
  providedIn: 'root'
})
export class ProductAttributeCateServiceApi extends CommonApi<ProductAttributeCategory>{

  constructor(
    private request: RequestService
  ) {
    super(request, '/productAttribute/category')
  }

  public listWithAttr():Observable<Array<ProductAttributeCategory>>{
    return this.request.get('/productAttribute/category/list/withAttr')
  }
}
